package com.toKnow.model.dto.transfer;

import com.toKnow.model.dto.UserInfoDTO;
import com.toKnow.model.entity.UserInfo;
import org.mapstruct.InheritConfiguration;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface UserInfoDTOTransfer {
    UserInfoDTOTransfer INSTANCE = Mappers.getMapper( UserInfoDTOTransfer.class );

    @InheritConfiguration
    UserInfo toUserInfo(UserInfoDTO userInfoDTO);

    @InheritInverseConfiguration
    UserInfoDTO fromUserInfo(UserInfo userInfo);
}
